import java.io.*;

public class SaveTest {

    public static void main(String[] args) {
//        Database db = new Database();
//        ObjectOutputStream oos;
//        try {
//            oos = new ObjectOutputStream(new FileOutputStream("Server/file/database"));
//            oos.writeObject(db);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }

//        File f = new File("Server/file/a.txt");
//        try {
//            DataManager.inputFromTXT(f);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }

        try {
            DataManager.outputDataToFile(new File("Server/file/database"));
            Database.getInstance().getTrueOrFalseQuestionList().forEach(System.out::println);
            Database.getInstance().getChoiceQuestionList().forEach(System.out::println);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
